﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cqrs.Infrastructure;
using Newtonsoft.Json;

namespace EventStore
{
    public class EventDescriptor
    {
        public Guid AggregateId { get; set; }
        public string EventJson { get; set; }
        public int Version { get; set; }
        public string EventType { get; set; }
        public string AggregateRootType { get; set; }
        public EventDescriptor(Guid aggregateId, string eventJson, int version, string eventType, string aggregateRootType)
        {
            EventJson = eventJson;
            Version = version;
            AggregateId = aggregateId;
            EventType = eventType;
            AggregateRootType = aggregateRootType;
        }


    }

}
